using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.Common;

namespace SMS.Common.Data
{
    public class SQLite
    {
        public static DbConnection GetDbConnection()
        {
            return GetFactory().CreateConnection();
        }

        public static DbDataAdapter GetDbDataAdapter()
        {
            return GetFactory().CreateDataAdapter();
        }

        public static DbProviderFactory GetFactory()
        {
            return DbProviderFactories.GetFactory("System.Data.SQLite");
        }

        public static DbCommand GetDbCommand()
        {
            return GetFactory().CreateCommand();
        }

        public static DbParameter GetDbParameter()
        {
            return GetFactory().CreateParameter();
        }
    }
}
